package com.share.shareplatform.sharegoods.dao;


import com.share.shareplatform.pojo.GoodsTwoComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsTwoCommentDao {
    Long addOne(GoodsTwoComment goodsTwoComment);
    Integer deleteOneById(Long id);
    Integer deleteAllByIds(Long[] ids);

    GoodsTwoComment findOneById(Long id);
    Integer deleteOneByReplyId(Long id);

    List<GoodsTwoComment> findAllByGoodsIdAndReplyId(@Param("goodsId") Long goodsId,@Param("replyId")Long replyId);
}
